<?php

include 'XSocial.php';

$xsocial = new XSocial();

//the root path for xsocial
$xsocial->webRoot = "";
//set platform name,see support platform list http://code.google.com/p/xsocial/wiki/SupportPlatform
$xsocial->platform = XSocial::TEST;

//set params need for platform authentication
$xsocial->platParams = array('appId' => '...','secret' => '...');

//the url of App
$xsocial->appIframeUrl = 'http://localhost/xsocial/sample/index.php';

//use for communication between XSocial and App
$xsocial->secretKey = 'app_test';

//begin output html content
$xsocial->service();